/**
 * 主要的CSS样式
 */
export const baseStyles = `
/* 基础样式 */
.airdrop-modal-font-inter {
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.airdrop-modal-font-roboto-mono {
  font-family: 'Roboto Mono', monospace;
}

/* 自定义滚动条 */
.airdrop-modal-custom-scrollbar::-webkit-scrollbar { width: 6px; height: 6px;display: none !important; }
.airdrop-modal-custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.airdrop-modal-custom-scrollbar::-webkit-scrollbar-thumb { background: #9ca3af; border-radius: 3px; }
.airdrop-modal-dark .airdrop-modal-custom-scrollbar::-webkit-scrollbar-thumb { background: #4b5563; }

/* 主题下的滚动条 */
.airdrop-modal-theme-web3-scrollbar::-webkit-scrollbar-thumb { background: #2563EB !important; }
.airdrop-modal-theme-cyberpunk-scrollbar::-webkit-scrollbar-thumb { background: #00f0ff !important; }
.airdrop-modal-theme-forest-scrollbar::-webkit-scrollbar-thumb { background: #4ade80 !important; }
.airdrop-modal-theme-sunset-scrollbar::-webkit-scrollbar-thumb { background: #FF8C00 !important; }
.airdrop-modal-theme-oceanic-scrollbar::-webkit-scrollbar-thumb { background: #20B2AA !important; }
.airdrop-modal-theme-minty-scrollbar::-webkit-scrollbar-thumb { background: #66CDAA !important; } 
.airdrop-modal-theme-royalpurple-scrollbar::-webkit-scrollbar-thumb { background: #9370DB !important; }
.airdrop-modal-theme-crimsongold-scrollbar::-webkit-scrollbar-thumb { background: #FFD700 !important; }
.airdrop-modal-theme-deepsea-scrollbar::-webkit-scrollbar-thumb { background: #1E90FF !important; }

/* 模态窗口包装器样式 */
.airdrop-modal-wrapper {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: rgba(0,0,0,0.8);
  transition: opacity 0.25s ease-out, visibility 0.25s ease-out;
}

.airdrop-modal-dark .airdrop-modal-wrapper {
  background-color: rgba(0,0,0,0.9);
}
  .airdrop-modal-text-xs {
    font-size: 0.75rem;
        line-height: 1rem;
        color: rgb(156, 163, 175);
  }

.airdrop-modal-py-4{
padding-top: 1rem;
    padding-bottom: 1rem;

}

.airdrop-modal-wrapper.airdrop-modal-hidden {
  opacity: 0;
  visibility: hidden;
}

.airdrop-modal-wrapper.airdrop-modal-visible {
  opacity: 1;
  visibility: visible;
}

/* 移动端滑动动画 */
@media (max-width: 767px) {
  .airdrop-modal.airdrop-modal-slide-up-active {
    transform: translateY(0%);
  }
  
  .airdrop-modal {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(100%);
  }
}

/* 桌面端淡入动画 */
@media (min-width: 768px) {
  .airdrop-modal.airdrop-modal-fade-in-active {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  
  .airdrop-modal {
    transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
}

/* 通用样式 */
.airdrop-modal {
  width: 100%;
  max-width: 32rem;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  background-color: #fff;
  
}
  /* 添加头部边框样式 */
.airdrop-modal-header-border-color {
  border-bottom: 1px solid rgb(229, 231, 235);
}
  blockquote, dd, dl, figure, h1, h2, h3, h4, h5, h6, hr, p, pre {
    margin: 0;
}

@media (min-width: 768px) {
  .airdrop-modal {
    border-radius: 0.75rem;
    max-height: 90vh;
  }
}

@media (max-width: 767px) {
  .airdrop-modal {
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 85vh;
  }
}

/* 倒计时翻转动画 */
.airdrop-modal-flip-animate-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 38px;
  height: 38px;
  line-height: 38px;
  overflow: hidden;
  text-align: center;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.airdrop-modal-flip-animate {
  display: inline-block;
  animation: airdrop-modal-flipVertical 0.5s ease-in-out;
}

@keyframes airdrop-modal-flipVertical {
  0% { transform: perspective(150px) rotateX(0deg); opacity: 1; }
  49% { transform: perspective(150px) rotateX(90deg); opacity: 0; }
  50% { transform: perspective(150px) rotateX(-90deg); opacity: 0; }
  100% { transform: perspective(150px) rotateX(0deg); opacity: 1; }
}

/* 脉冲指示器 */
.airdrop-modal-pulse-indicator {
  animation: airdrop-modal-pulseIndicator 1.8s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes airdrop-modal-pulseIndicator {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.25); }
}

/* 加载指示器 */
.airdrop-modal-loader {
  border-width: 3px;
  border-style: solid;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: airdrop-modal-spin 0.8s linear infinite;
  margin-right: 8px;
}

@keyframes airdrop-modal-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 漂浮动画 */
.airdrop-modal-float-gift {
  animation: airdrop-modal-floatGift 2.8s ease-in-out infinite;
}

@keyframes airdrop-modal-floatGift {
  0% {transform: translateY(0px);}
  50% {transform: translateY(-15px);}
  100% {transform: translateY(0px);}
}

/* 成功状态粒子效果 */
.airdrop-modal-particles-success {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.airdrop-modal-particle {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  opacity: 0;
  animation: airdrop-modal-particle-effect 2s ease-out forwards;
}

@keyframes airdrop-modal-particle-effect {
  0% { transform: translate(var(--start-x), var(--start-y)) scale(0.2); opacity: 0; }
  20% { opacity: 1; transform: scale(1.3); }
  100% { transform: translate(var(--end-x), var(--end-y)) scale(0.1); opacity: 0; }
}

/* 时间线节点 */
.airdrop-modal-timeline-node::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -4px;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid;
  background-color: var(--bg-surface);
  z-index: 2;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.airdrop-modal-timeline-node.active::before {
  width: 18px;
  height: 18px;
  top: -6px;
  animation: airdrop-modal-pulseNode 1.5s infinite;
}

.airdrop-modal-timeline-node.completed::before {
  background-color: currentColor;
}

/* 时间线连接器和进度条 */
.airdrop-modal-timeline-connector {
  background-color: rgb(229, 231, 235);
  position: absolute;
  top: 2px;
  left: calc(16.66% + 10px);
  right: calc(16.66% + 10px);
  height: 3px;
  z-index: 1;
  border-radius: 2px;
}
  .airdrop-modal-p-25{
  padding: 0.625rem;
  }
  .airdrop-modal-ml-3/2{
  margin-left: 0.375rem;
  }

.airdrop-modal-timeline-progress {
  background-color: #2563EB; /* 默认蓝色，主题会动态覆盖 */
  height: 100%;
  border-radius: 2px;
  transition: width 0.5s ease-in-out;
}

@keyframes airdrop-modal-pulseNode {
  0% { box-shadow: 0 0 0 0px var(--pulse-node-color-alpha); }
  50% { box-shadow: 0 0 0 6px var(--pulse-node-color-alpha); }
  100% { box-shadow: 0 0 0 0px var(--pulse-node-color-alpha); }
}

/* 卡片阴影 */
.airdrop-modal-card-shadow {
  box-shadow: 0 10px 25px -5px var(--card-shadow-color-1, rgba(0,0,0,0.1)), 0 8px 10px -6px var(--card-shadow-color-2, rgba(0,0,0,0.1));
}

.airdrop-modal-dark .airdrop-modal-card-shadow {
  box-shadow: 0 10px 25px -5px var(--card-shadow-color-1-dark, rgba(0,0,0,0.3)), 0 8px 10px -6px var(--card-shadow-color-2-dark, rgba(0,0,0,0.3));
}

/* 其他样式 */
.airdrop-modal-loading-overlay {
  transition: opacity 0.3s ease-in-out;
}

.airdrop-modal-hidden-for-result {
  display: none !important;
}

/* 布局和尺寸类 */
.airdrop-modal-p-0 { padding: 0; }
.airdrop-modal-p-4 { padding: 1rem; }
.airdrop-modal-p-5 { padding: 1.25rem; }
.airdrop-modal-p-6 { padding: 1.5rem; }
.airdrop-modal-px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.airdrop-modal-px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.airdrop-modal-py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.airdrop-modal-py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.airdrop-modal-py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.airdrop-modal-pt-2 { padding-top: 0.5rem; }
.airdrop-modal-pt-3 { padding-top: 0.75rem; }
.airdrop-modal-pb-2 { padding-bottom: 0.5rem; }
.airdrop-modal-mx-auto { margin-left: auto; margin-right: auto; }
.airdrop-modal-my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.airdrop-modal-mt-2 { margin-top: 0.5rem; }
.airdrop-modal-ml-1 { margin-left: 0.25rem; }
.airdrop-modal-ml-2 { margin-left: 0.5rem; }
.airdrop-modal-mr-2 { margin-right: 0.5rem; }

/* 尺寸类 */
.airdrop-modal-w-1-3 { width: 33.33%; box-sizing: border-box; }
.airdrop-modal-w-full { width: 100%;box-sizing: border-box; }
.airdrop-modal-h-14 { height: 3.5rem; }
.airdrop-modal-h-12 { height: 3rem; }
.airdrop-modal-w-12 { width: 3rem; }
.airdrop-modal-w-24 { width: 6rem; }
.airdrop-modal-h-24 { height: 6rem; }
.airdrop-modal-w-20 { width: 5rem; }
.airdrop-modal-h-20 { height: 5rem; }
.airdrop-modal-min-h-250 { min-height: 250px; }

/* 显示类 */
.airdrop-modal-flex { display: flex; }
.airdrop-modal-inline-flex { display: inline-flex; }
.airdrop-modal-hidden { display: none; }
.airdrop-modal-block { display: block; }
.airdrop-modal-invisible { visibility: hidden; }
.airdrop-modal-visible { visibility: visible; }

/* 弹性布局类 */
.airdrop-modal-flex-col { flex-direction: column; }
.airdrop-modal-items-center { align-items: center; }
.airdrop-modal-justify-center { justify-content: center; }
.airdrop-modal-justify-between { justify-content: space-between; }
.airdrop-modal-space-x-2 > * + * { margin-left: 0.5rem; }
.airdrop-modal-space-x-4 > * + * { margin-left: 1rem; }
.airdrop-modal-space-y-4 > * + * { margin-top: 1rem; }
.airdrop-modal-space-y-5 > * + * { margin-top: 1.25rem; }
.airdrop-modal-space-y-6 > * + * { margin-top: 1.5rem; }
.airdrop-modal-flex-grow { flex-grow: 1; }

/* 定位类 */
.airdrop-modal-relative { position: relative; }
.airdrop-modal-absolute { position: absolute; }
.airdrop-modal-fixed { position: fixed; }
.airdrop-modal-inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.airdrop-modal-top-0 { top: 0; }
.airdrop-modal-right-0 { right: 0; }
.airdrop-modal-right-3 { right: 0.75rem; }
.airdrop-modal-bottom-0 { bottom: 0; }
.airdrop-modal-left-0 { left: 0; }
.airdrop-modal-z-10 { z-index: 10; }
.airdrop-modal-z-15 { z-index: 15; }
.airdrop-modal-z-20 { z-index: 20; }
.airdrop-modal-sticky { position: sticky; }

/* 变换类 */
.airdrop-modal-transform { transform-origin: center; }
.airdrop-modal-translate-y-0 { transform: translateY(0); }
.airdrop-modal-translate-y-100 { transform: translateY(100%); }
.airdrop-modal-scale-95 { transform: scale(0.95); }
.airdrop-modal-translate-y-50 { transform: translateY(-50%); }

/* 文本类 */
.airdrop-modal-text-center { text-align: center; }
.airdrop-modal-text-sm { font-size: 0.875rem; }
.airdrop-modal-text-base { font-size: 1rem; }
.airdrop-modal-text-lg { font-size: 1.125rem; }
.airdrop-modal-text-xl { font-size: 1.25rem; }
.airdrop-modal-text-2xl { font-size: 1.5rem; }
.airdrop-modal-text-4xl { font-size: 2.25rem; }
.airdrop-modal-font-normal { font-weight: 400; }
.airdrop-modal-font-medium { font-weight: 500; }
.airdrop-modal-font-semibold { font-weight: 600;color: rgb(17, 24, 39); }
.airdrop-modal-font-bold { font-weight: 700; }

/* 边框和圆角类 */
.airdrop-modal-rounded-lg { border-radius: 0.5rem; }
.airdrop-modal-rounded-xl { border-radius: 0.75rem; }
.airdrop-modal-rounded-2xl { border-radius: 1rem; }
.airdrop-modal-rounded-full { border-radius: 9999px; }
.airdrop-modal-rounded-t-2xl { border-top-left-radius: 1rem; border-top-right-radius: 1rem; }
.airdrop-modal-border { border-width: 1px; }
.airdrop-modal-border-t { border-top:1px solid #e5e7eb; }
.airdrop-modal-border-b { border-bottom-width: 1px; }

/* 其他实用类 */
.airdrop-modal-w-0.3{
width: 33.3%;
}
.airdrop-modal-shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.airdrop-modal-shadow-lg { 
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); 
}
.airdrop-modal-shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.airdrop-modal-shadow-inner { --tw-shadow: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
    --tw-shadow-colored: inset 0 2px 4px 0 var(--tw-shadow-color);
    box-shadow: 0 0 #0000,  0 0 #0000, inset 0 2px 4px 0 rgb(0 0 0 / 0.05); }
.airdrop-modal-overflow-hidden { overflow: hidden; }
.airdrop-modal-overflow-y-auto { overflow-y: auto; }
.airdrop-modal-transition-all { transition-property: all; }
.airdrop-modal-duration-200 { transition-duration: 200ms; }
.airdrop-modal-duration-300 { transition-duration: 300ms; }
.airdrop-modal-cursor-grab { cursor: grab; }
.airdrop-modal-cursor-not-allowed { cursor: not-allowed; }
.airdrop-modal-focus-outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.airdrop-modal-opacity-0 { opacity: 0; }
.airdrop-modal-opacity-50 { opacity: 0.5; }
.airdrop-modal-opacity-70 { opacity: 0.7; }
.airdrop-modal-opacity-90 { opacity: 0.9; }
.airdrop-modal-opacity-100 { opacity: 1; }

/* 输入框样式覆盖 */
.airdrop-modal-input-override:focus {
  outline: none !important;
  box-shadow: none !important;
  // border-color: inherit !important;
  border: 2px solid #4285f4 !important;
  border-style: solid !important;
  border-color:2px solid #4285f4 !important;
}
`;

/**
 * 必要的字体加载
 */
export const fontsImport = `
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Roboto+Mono:wght@400;700&display=swap');
`;

export const DEFAULT_STYLES = `
  .airdrop-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }

  .airdrop-modal-container.visible {
    opacity: 1;
    visibility: visible;
  }

  .airdrop-modal {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    width: 420px;
    max-width: 90%;
    max-height: 90vh;
    overflow: hidden;
    animation: airdropModalFadeIn 0.3s ease-out;
    position: relative;
  }

  .airdrop-modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #dadce0;
    position: relative;
  }

  .airdrop-modal-title {
    font-size: 22px;
    font-weight: 500;
    margin: 0;
    color: #202124;
  }

  .airdrop-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #5f6368;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .airdrop-modal-close:hover {
    color: #202124;
  }

  .airdrop-modal-body {
    padding: 24px;
    overflow-y: auto;
  }

  .airdrop-modal-status {
    text-align: center;
    padding: 16px 0;
  }

  .airdrop-status-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
  }

  .airdrop-status-message {
    font-size: 16px;
    line-height: 1.5;
    color: #202124;
    margin-bottom: 24px;
  }

  .airdrop-input-group {
    margin-bottom: 16px;
  }

  .airdrop-input-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #5f6368;
  }

  .airdrop-input-field {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
  }

  .airdrop-input-field:focus {
    outline: none;
    border-color: #4285f4;
  }

  .airdrop-input-error {
    border-color: #db4437;
  }

  .airdrop-error-message {
    color: #db4437;
    font-size: 14px;
    margin-top: 4px;
  }

  .airdrop-modal-footer {
    padding: 16px 24px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
  }

  .airdrop-btn {
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
  }

  .airdrop-btn-secondary {
    background-color: transparent;
    color: #4285f4;
    border: 1px solid #dadce0;
  }

  .airdrop-btn-secondary:hover {
    background-color: rgba(66, 133, 244, 0.04);
  }

  .airdrop-btn-primary {
    background-color: #4285f4;
    color: white;
    border: none;
  }

  .airdrop-btn-primary:hover {
    background-color: #3367d6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  }

  .airdrop-btn-disabled {
    background-color: #f1f3f4;
    color: #9aa0a6;
    cursor: not-allowed;
    border: none;
  }

  .airdrop-countdown-circle {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
  }

  .airdrop-countdown-svg {
    transform: rotate(-90deg);
  }

  .airdrop-countdown-circle-bg {
    fill: none;
    stroke: #f1f3f4;
    stroke-width: 8;
  }

  .airdrop-countdown-circle-progress {
    fill: none;
    stroke: #4285f4;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear;
  }

  .airdrop-countdown-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    font-weight: 500;
  }

  .airdrop-loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 4px solid rgba(66, 133, 244, 0.2);
    border-radius: 50%;
    border-top-color: #4285f4;
    animation: airdropSpin 1s linear infinite;
  }

  @keyframes airdropSpin {
    to {
      transform: rotate(360deg);
    }
  }

  @keyframes airdropModalFadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* 暗色模式 */
  .airdrop-modal-container.dark-theme .airdrop-modal {
    background-color: #202124;
  }

  .airdrop-modal-container.dark-theme .airdrop-modal-header {
    border-bottom-color: #5f6368;
  }

  .airdrop-modal-container.dark-theme .airdrop-modal-title {
    color: #e8eaed;
  }

  .airdrop-modal-container.dark-theme .airdrop-modal-close {
    color: #9aa0a6;
  }

  .airdrop-modal-container.dark-theme .airdrop-modal-close:hover {
    color: #e8eaed;
  }

  .airdrop-modal-container.dark-theme .airdrop-status-message {
    color: #e8eaed;
  }

  .airdrop-modal-container.dark-theme .airdrop-input-label {
    color: #9aa0a6;
  }

  .airdrop-modal-container.dark-theme .airdrop-input-field {
    background-color: #303134;
    color: #e8eaed;
    border-color: #5f6368;
  }

  .airdrop-modal-container.dark-theme .airdrop-input-field:focus {
    border-color: #8ab4f8;
  }

  .airdrop-modal-container.dark-theme .airdrop-btn-secondary {
    color: #8ab4f8;
    border-color: #5f6368;
  }

  .airdrop-modal-container.dark-theme .airdrop-btn-secondary:hover {
    background-color: rgba(138, 180, 248, 0.08);
  }

  .airdrop-modal-container.dark-theme .airdrop-btn-disabled {
    background-color: #303134;
    color: #9aa0a6;
  }

  /* 移动端适配 */
  @media (max-width: 480px) {
    .airdrop-modal {
      width: 100%;
      max-width: 100%;
      border-radius: 0;
      height: 100%;
      max-height: 100%;
      display: flex;
      flex-direction: column;
    }

    .airdrop-modal-body {
      flex: 1;
      overflow-y: auto;
    }

    .airdrop-modal-header {
      padding: 16px;
    }

    .airdrop-modal-title {
      font-size: 20px;
    }

    .airdrop-modal-body {
      padding: 16px;
    }

    .airdrop-modal-footer {
      padding: 12px 16px 16px;
    }
  }
`;

/**
 * 根据主题动态生成CSS变量
 * @param theme 主题名称
 * @returns CSS变量字符串
 */
export function generateThemeVariables(theme: string): string {
  const themes = {
    light: {
      '--primary-color': '#4285f4',
      '--success-color': '#0f9d58',
      '--warning-color': '#f4b400',
      '--error-color': '#db4437',
      '--bg-color': '#ffffff',
      '--text-color': '#202124',
      '--border-color': '#dadce0',
      '--shadow-color': 'rgba(0, 0, 0, 0.1)'
    },
    dark: {
      '--primary-color': '#8ab4f8',
      '--success-color': '#81c995',
      '--warning-color': '#fdd663',
      '--error-color': '#f28b82',
      '--bg-color': '#202124',
      '--text-color': '#e8eaed',
      '--border-color': '#5f6368',
      '--shadow-color': 'rgba(0, 0, 0, 0.3)'
    }
  };

  const selectedTheme = themes[theme === 'dark' ? 'dark' : 'light'];

  return Object.entries(selectedTheme)
    .map(([key, value]) => `${key}: ${value};`)
    .join('\n');
} 